class Comparator :
    def __init__(self, value) :
        self.value = value
    def compare(self, anotherObject) :
        try :
            return cmp(self.value, anotherObject.value)
        except AttributeError:
            return 1
        
